package com.ytkj.digitalConstruction.httpbean.dept.req;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 给钉钉添加部门所传的Department对象
 * 
 * @author momei
 *
 */
public class ReqDingDept{

	/**
	 * 部门id
	 */
	private Integer id;
	
	/**
	 * 部门名称
	 */
	@NotBlank(message = "用户名不能为空")
	private String name;
	
	/**
	 * 父级节点Id
	 */
	private Integer parentid;
	
	/**
	 * 在父部门中的排序
	 */
	@NotNull(message = "字段不允许为空")
	private Integer order;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}
}
